#ifndef _CLOGFILE_H_
#define _CLOGFILE_H_

#include "ILog.h"

#ifdef _UNICODE
	#define FILELOG_CONFIGURATION_FILENAME	L"ErrorHandler.ini"
	#define FILELOG_CONFIGURATION_SECTION	L"LOG_FORMATTING"
	#define TXT_COLOR_KEY					L"DefaultTxtColor"
	#define TXT_BOLD_KEY					L"DefaultTxtBold"
	#define TXT_ITALLIC_KEY					L"DefaultTxtItallic"
	#define FONT_SIZE_KEY					L"DefaultFontSize"
	#define FONT_KEY						L"DefaultFontName"
#else
	#define FILELOG_CONFIGURATION_FILENAME	"ErrorHandler.ini"
	#define FILELOG_CONFIGURATION_SECTION	"LOG_FORMATTING"
	#define TXT_COLOR_KEY					"DefaultTxtColor"
	#define TXT_BOLD_KEY					"DefaultTxtBold"
	#define TXT_ITALLIC_KEY					"DefaultTxtItallic"
	#define FONT_SIZE_KEY					"DefaultFontSize"
	#define FONT_KEY						"DefaultFontName"
#endif

ILog *CreateFileLog(const lvString &cstrFilename);

class CLogFile : public ILog
{
public:
	CLogFile(const lvString &cstrFilename);
	~CLogFile();

	lvVoid Clear();
	lvVoid Write(const lvString &cstrText);
	lvVoid WriteLn(const lvString &cstrText);
protected:
	FILE *m_pFile;
};

#endif